package loop;

import java.util.Arrays;
import java.util.Scanner;

public class Sort_1 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您要排序的三个数");
        int a,b,c,temp;
        a = scanner.nextInt();
        b = scanner.nextInt();
        c = scanner.nextInt();
        System.out.println(System.currentTimeMillis());
        if ( a<b && a<c ){
            System.out.println(a);
        }else if( b<a && b<c){
            System.out.println(b);
        }else{
            System.out.println(c);
        }
        if((a>b && a<c) || (a < b && a >c)){
            System.out.println(a);
        }else if((b > a && b < c) || (b < a && b >c)){
            System.out.println(b);
        }else {
            System.out.println(c);
        }
        if ( a>b && a>c ){
            System.out.println(a);
        }else if( b>a && b>c){
            System.out.println(b);
        }else{
            System.out.println(c);
        }
        System.out.println(System.currentTimeMillis());



/*        System.out.println(System.currentTimeMillis());
        if( a < b && a < c){
            if ( b > c) {
                temp = c ;
                c = b ;
                b = temp ;
            }
            System.out.println(a + " " + b + " " + c) ;
        } else if (b < a  && b < c ) {
            if ( a > c) {
                temp = a ;
                c = a ;
                a = temp ;
            }
            System.out.println(b + " " + a + " " + c) ;
        } else if(c < a  && c < b ){
            if ( a > b) {
                temp = a ;
                a = b ;
                b = temp ;
            }
            System.out.println(c + " " + a + " " + b) ;
        }
        System.out.println(System.currentTimeMillis());
*/


/*
       Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您要排序的三个整数：");
        //冒泡排序
        int []a = new int [3];
        for (int i = 0; i< 3;i++){
            a[i] = scanner.nextInt();
        }
        System.out.println(System.currentTimeMillis());
        for( int i = 0 ; i < 3 ; i++){
            for (int j = i+1 ; j < 3 ; j++ )
            if (a[j] < a[i]){
                int temp = a[i] ;
                a[i] = a[j] ;
                a[j] = temp ;
            }
        }
        System.out.println(Arrays.toString(a));
        System.out.println(System.currentTimeMillis());
        */
    }
}
